#ifndef BATTERYSET_H
#define BATTERYSET_H

#include <QWidget>
#include "battryinfo.h"

namespace Ui {
class BatterySet;
}

class BatterySet : public QWidget
{
    Q_OBJECT

public:
    explicit BatterySet(int curIndex, QWidget *parent = 0);
    ~BatterySet();

signals:
    void exit_set();
    void send_info(QString batID, QString batinfo);
    void SendSet(QByteArray ba);

public slots:
    void com_rec(QString data_src);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::BatterySet *ui;
    QList<BattryInfo *> BatInfo;
    int curBat;
    BattryInfo *batInfo;
    QString ToStr(int number, int base, int size);
};

#endif // BATTERYSET_H
